package codeine.manage;

import java.io.PrintWriter;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.log4j.Logger;

import codeine.configuration.ConfigurationManager;
import codeine.configuration.Links;
import codeine.model.Constants;
import codeine.servlet.AbstractServlet;
import codeine.servlet.HtmlHeaderWriter;
import codeine.servlets.DashboardServlet;

import com.google.inject.Inject;

public class ManageServlet extends AbstractServlet
{
	private static final Logger log = Logger.getLogger(DashboardServlet.class);
	private static final long serialVersionUID = 1L;
	
	@Inject private HtmlHeaderWriter htmlHeaderWriter;
	@Inject private ConfigurationManager configurationManager;
	@Inject private Links links;

	@Override
	protected void myGet(HttpServletRequest request, HttpServletResponse response) {
		log.debug("dashboard request");
		PrintWriter writer = getWriter(response);
		htmlHeaderWriter.writeHeader(request, response, null, "manage");
		String line = "";
		line += "            <alert><div class=\"alertbar\"><ul>";
		line += "<li><a class=\"" + "nameg" + "\" href=\"" + Constants.CONFIGURE_CONTEXT+"\">Configure</a></li>";
		line += "</ul><br style=\"clear:left\"/></div></alert>";
		line += "            <alert><div class=\"alertbar\"><ul>";
		line += "<li><a class=\"" + "nameg" + "\" href=\"" + Constants.RESOURCESS_CONTEXT+"\">Codeine Logs</a></li>";
		line += "</ul><br style=\"clear:left\"/></div></alert>";
		writer.println(line);
		htmlHeaderWriter.writeFooter(response);
	}
}
